// 引入ReactDOM的createRoot
import {createRoot} from 'react-dom/client'
// 引入App组件
import App from './App'
import {BrowserRouter} from 'react-router-dom'
import Demo from './components/Demo'

const containter = document.getElementById('root')
const root = createRoot(containter)
// 渲染App到页面
root.render(
  <div>
    <Demo/>
    <BrowserRouter>
      <App/>
    </BrowserRouter>
  </div>
)
export default root